package main

import (
	"blockchain/tests/part12-wallet/wallet"
	"fmt"
)

func main(){
	//testVallet:=wallet.NewWallet()
	//
	//fmt.Printf("%s\n",testVallet.GetAddress())
	//
	////1Gh5pL2uFsS8AFuSkd6za521FzsWHJcXDb
	////1FCi6SRyhXNV8qQ9M8rPvMsceNVBrN8QXC
	//
	//fmt.Println("地址是否合法:",testVallet.IsValidateAddress(testVallet.GetAddress()))


	w:=wallet.NewWallets()
	w.CreateNewWallet()
	w.CreateNewWallet()
	for address,wallet:=range w.WalletsMap{
		fmt.Println(address)
		fmt.Printf("%x\n",wallet.PublicKey)
	}
}
